package middlewares

import (
	"longmen/server/internal/rpc/tencentim/cache"

	"github.com/labstack/echo/v4"
)

func GlobalIP(next echo.HandlerFunc) echo.HandlerFunc {
	return func(c echo.Context) error {
		cache.IncGlobalIp(c.RealIP())
		return next(c)
	}
}
